package heap

import (
	"game/game-db/orm"
	"game/readygo/quickstart/repository"
)

type IPlayerOneToOneEntity interface {
	repository.ICacheRepositoryEntity
	GetPlayerId() int64
	SetPlayerId(playerId int64)
}

type PlayerOneToOneEntity struct {
	orm.DbEntity
	PlayerId int64 `orm:"id=IDENTITY;comment=玩家ID"`
}

func (t *PlayerOneToOneEntity) GetPlayerId() int64 {
	return t.PlayerId
}

func (t *PlayerOneToOneEntity) SetPlayerId(playerId int64) {
	t.PlayerId = playerId
}
